cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

project(CamCal)


if(WIN32)
  if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
    set(CMAKE_DEBUG_POSTFIX "_dg")
  endif()   
endif()



find_package(OpenCV  REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
link_directories(${OpenCV_LIB_DIR})

set(srcs 
         CamCal.cpp
        )

set(incs
        CamCal.h
        )

add_executable (CamCal ${srcs} ${incs})
target_link_libraries (CamCal ${OpenCV_LIBS})

